<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.qingke.dao.*"%>
<%@page import="com.qingke.pojo.*"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<button onclick="window.location.href=add.jsp">添加</button>
	<br>
	<%
		StrutsExampleDAO dao = new StrutsExampleDAO();
		List<Account> list = dao.selectAccounts();
	%>
	<ul>
		<%
			for (Account a : list) {
		%>
		<li>ID:<%=a.getId()%></li>
		<li>用户名:<%=a.getUsername()%></li>
		<li>密码:<%=a.getPassword()%></li>
		<li></li>
		<%
			}
		%>
	</ul>
</body>
</html>